<template>
 <div>
  
 </div>
</template>

<script setup>
import * as PIXI from "pixi.js"
// 创建应用
const app = new PIXI.Application({
  width:window.innerWidth,
  height:window.innerHeight,
  backgroundColor:0x1099bb,
  resolution:window.devicePixelRatio || 1
})
// 将应用画布添加刀DOM中
// document.body.removeChild(app.view)
document.body.appendChild(app.view)
const rectangle = new PIXI.Graphics();
rectangle.beginFill(0x66ccff)
rectangle.drawRect(200,0,164,64)
rectangle.endFill()
app.stage.addChild(rectangle)
// 创建一个圆形
const circle = new PIXI.Graphics();
circle.beginFill(0xff0000)
circle.drawCircle(0,0,32)
circle.endFill()


</script>

<style>
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
canvas{
  width: 100vw;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
}
</style>
